if ENABLE_TEST

TESTS = factorytest mpitest raytest gridtest hilbert_bug columndensitytest 

check_PROGRAMS = $(TESTS)

raytest_SOURCES = runner.cc ray_test.cc
raytest_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

mpitest_SOURCES = runner.cc mpimaster_test.cc ../src/mpi_util.cc
mpitest_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

gridtest_SOURCES = runner.cc grid_test.cc ../src/mpi_util.cc
gridtest_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

columndensitytest_SOURCES = runner.cc column_density_test.cc ../src/mpi_util.cc
columndensitytest_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

hilbert_bug_SOURCES = runner.cc hilbert_bug.cc
hilbert_bug_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

factorytest_SOURCES = runner.cc factory_test.cc ../src/mpi_util.cc
factorytest_LDADD = -lUnitTest++ $(BOOST_THREAD_LIB)

endif

